//
//  ZPZNetRequest+InsureList.m
//  项目二网络请求
//
//  Created by 张峥 on 16/7/23.
//  Copyright © 2016年 张峥. All rights reserved.
//

#import "ZPZNetRequest+InsureList.h"

@implementation ZPZNetRequest (InsureList)

+ (void)getInsureListPageNum:(NSString *)pageNum pageSize:(NSString *)pageSize UserId:(NSString *)userId comletion:(ZLReqComletion)comletion{
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    if (pageNum != nil && pageSize != nil && userId != nil) {
        [numDic setObject:pageNum forKey:@"pageNum"];
        [numDic setObject:pageSize forKey:@"pageSize"];
        [numDic setObject:userId forKey:@"userId"];
    }
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appFinancial/getInsureList" requestType:ZLApRequestPost Comletion:comletion];

}

+ (void)getInsureDetailId:(NSString *)Id comletion:(ZLReqComletion)comletion{
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    if (![LStringUtils isTextEmpty:Id]) {
        [numDic setObject:Id forKey:@"id"];
    }
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appFinancial/getInsureDetail" requestType:ZLApRequestPost Comletion:comletion];
    
}

@end
